const alert = (...args) => console.log('alert: ', ...args);

function enumerable() {
    var person = {};
    Object.defineProperty(person, "name", {
        value: 'person',
    });
    Object.defineProperty(person, "code", {
        value: "code",
    });
    Object.defineProperty(person, "age", {
        value: "age",
    });

    function P() {
    }

    P.prototype = {
        name: 'wangwang',
        age: '11',
        say: function () {
            alert(this.name); //wangwang
        }
    };
    const p = new P();
    p.say();
    console.log(P.prototype, p, p.__proto__);
}

enumerable();
